package com.example.yk_fx.db;

import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.OnConflictStrategy;
import androidx.room.Query;
import androidx.room.Update;

@Dao
public interface AccountDao {
    @Insert(onConflict = OnConflictStrategy.REPLACE)
    void insertAccount(Account account);
    @Update
    void updateAccount(Account account);
    @Query("select * from account where name=:name")
    Account queryAccount(String name);
}
